package com.mapper;

import com.entity.LotteryOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @InterfaceName LotteryOrder
 * @Description 奖品订单持久层接口
 * @Author Kx
 * @Date 2025/6/18 11:50
 * @Version 1.0
 */
public interface LotteryOrderMapper {
    /**
     * @author: kx
     * @date: 2025/6/18 11:54
     * @param lotteryOrder : 奖品订单
     * @description: 添加奖品订单
    */
    void addLotteryOrder(@Param("lotteryOrder") LotteryOrder lotteryOrder);

    /**
     * @author: kx
     * @date: 2025/6/19 15:51
     * @param lotteryOrder : 奖品订单信息
     * @description: 修改奖品订单状态
    */
    void updateLotteryOrderStatus(@Param("lotteryOrder") LotteryOrder lotteryOrder);

    /**
     * @author: kx
     * @date: 2025/6/19 16:09
     * @param pageNum : 页码
     * @param pageSize : 每页数量
     * @return java.util.List<com.entity.LotteryOrder>
     * @description: 分页查询所有奖品订单
    */
    List<LotteryOrder> getPagedLotteryOrders(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);
}
